ASP.NET Core MVC Controls | ComponentOne
C1.Web.Mvc Namespace / AutoCompleteBase<T> Class / CssMatch Property






In This Topic
    CssMatch Property (AutoCompleteBase<T>)
    In This Topic
    Gets or sets the name of the CSS class used to highlight any parts of the content that match the search terms.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.DefaultValueAttribute("wj-state-match")>
    Public Overridable Property CssMatch As System.String
    'Usage
     
    
    Dim instance As AutoCompleteBase(Of T)
    Dim value As System.String
     
    instance.CssMatch = value
     
    value = instance.CssMatch
    [System.ComponentModel.DefaultValue("wj-state-match")]
    public virtual System.string CssMatch {get; set;}
    public read-write property CssMatch: System.String; virtual; 
    System.ComponentModel.DefaultValueAttribute("wj-state-match")
    public function get,set CssMatch : System.String
    [System.ComponentModel.DefaultValue("wj-state-match")]
    public: __property virtual System.string* get_CssMatch();
    public: __property virtual void set_CssMatch( 
       System.string* value
    );
    [System.ComponentModel.DefaultValue("wj-state-match")]
    public:
    virtual property System.String^ CssMatch {
       System.String^ get();
       void set (    System.String^ value);
    }
    Remarks
    By default, this property is set to "wj-state-match", which causes the matching terms to be shown in bold. You can set it to the name of a CSS class to change the way the matches are displayed.
    See Also